"""The application's Globals object"""
from pylons import config
from image_storage import *

class Globals(object):
    """Globals acts as a container for objects available throughout the life of
    the application.
    """

    def __init__(self):
        """One instance of Globals is created during application initialization
        and is available during requests via the 'g' variable.
        """
        import eshop.model as model
        model.connect()
        model.create_all()
        #TODO add configuration from params
        self.image_storage = ImageStorage('./data/images')